-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split Italic and Roman VFs in builder #964
Conversation
Got a couple of babelfont-related issues here which mean I can't use it; will rethink. |
Would this accurately handle discrete (non-continuous) Italic axes, or is that a separate issue? For example, I’d like to do the following: <axis tag="ital" name="Italic" values="0 1" default="0">
<labels>
<label uservalue="0" name="Roman" elidable="true" />
<label uservalue="1" name="Italic" />
</labels>
</axis> This currently requires two designspace files, which pre-splits the axis between Roman and Italic sub-families. Luckily, this approach does seem to work well and create the STAT tables I want. Still, it requires some repeated information, which FontMake alone doesn’t require. I’m not sure how challenging this would be to map to the recipe logic of the Builder, though. If it’s not feasible, the builder still offers enough advantages that I would stick with it over directly using FontMake, but it would be handy to understand if the above axis setup is planned to be supported, or not. Thanks for any insights! |
It probably would handle that if you have a single VF which is subspacable. I'm not sure what fontmake would do with that kind of designspace right now. Another option is DS5 designspaces which allow you to generate multiple VFs from the same designspace, but we absolutely don't support those quite yet and I'm not sure what tooling generates them anyway. |
fontmake supports building multiple VFS (sharing sources or axis subsets) from the same DSv5, it's handled in ufo2ft and fontTools.designspaceLib/varLib
with since googlefonts/glyphsLib#977 @khaledhosny added support for converting Glyphs.app's Variable Font Export Settings to DSv5 |
@anthrotype having used this feature quite a bit recently, it is basically there to define the naming info, for example, if the family name is different or suffixed from the general family name given to static exports (e.g. "Familyname Variable"). From what I can see, the VF export settings and custom parameters don’t yet give any options around defining subsetting axis ranges, unlike the |
I have a font with a backslant, where I need the backslant, and I have to get something like this: Myfont[slnt,wght].ttf. |
To keep a single file (turn off the splitting), set |
Cool, thank you! |
Fixes #957.
We sometimes have source files containing an
ital
orslnt
axis, but we require the onboarding of two separate fonts with Roman and Italic joined by style linking and STAT axis. This PR usesvarLib.instancer
to partially instance them along the relevant italic axis and then fixes them up accordingly.Requires #963.